class LocData {
  double? _latitude;
  double? _longitude;
  double? _accuracy;
  double? _altitude;
  double? _speed;
  double? _speedAccuracy;

  double? get latitude => _latitude;
  double? get longitude => _longitude;
  double? get accuracy => _accuracy;
  double? get altitude => _altitude;
  double? get speed => _speed;
  double? get speedAccuracy => _speedAccuracy;

  LocData(
      {double? latitude,
        double? longitude,
        double? accuracy,
        double? altitude,
        double? speed,
        double? speedAccuracy}) {
    _latitude = latitude;
    _longitude = longitude;
    _accuracy = accuracy;
    _altitude = altitude;
    _speed = speed;
    _speedAccuracy = speedAccuracy;
  }

  LocData.fromJson(dynamic json) {
    _latitude = json["latitude"];
    _longitude = json["longitude"];
    _accuracy = json["accuracy"];
    _altitude = json["altitude"];
    _speed = json["speed"];
    _speedAccuracy = json["speedAccuracy"];
  }
}